var worker = new Worker('worker.js');
worker.onmessage = function (event) {
    data = JSON.parse(event.data);
    console.log(data);
    document.getElementById("ort").innerHTML = data.name;
    document.getElementById('maindata').textContent = data.weather[0].main;
    document.getElementById('description').textContent = data.weather[0].description;
};

worker.postMessage('graz');

